package com.company.cloud.user.modules.bus.consumer;

import com.company.cloud.common.constant.ConfigConstants;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@ConditionalOnProperty(value = ConfigConstants.CONFIG_Active_MQ_ENABLED, havingValue = "true")
@Service
public class TppicConsumerListener1 {


//    @JmsListener(destination = "topic1",containerFactory = "topicListener")
//    public void topicRead1(String message){
//        System.out.println("+++++ TppicConsumerListener1,message = "+message);
//    }

//    ,containerFactory = "topicListener"

//    @JmsListener(destination = "topic1")
//    public void topicRead2(String message){
//        System.out.println("+++++ TppicConsumerListener2,message = "+message);
//    }

//

    @JmsListener(destination = "topic1" ,containerFactory = "topicListener")
    public void topicRead3(String message){
        System.out.println("+++++ TppicConsumerListener3,message = "+message);
    }



}
